<template>
  <div class="left-chart-1">
    <div class="lc1-header">入库</div>
    <div class="lc1-details">入库总数<span>430</span></div>
    <dv-scroll-board :config="config" style="height:160px" />
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
defineOptions({
  name: 'LeftChart1'
})
// 类型定义
interface ChartDataItem {
  name: string
  value: number
}

// 响应式配置
interface ChartConfig {
  data: ChartDataItem[]
}

const config = reactive<ChartConfig>({
  data: [
    { name: '一号仓库', value: 356 },
    { name: '二号仓库', value: 215 },
    { name: '三号仓库', value: 90 },
    { name: '四号仓库', value: 317 },
  ],
})







</script>

<style lang="less">
.left-chart-1 {
  width: 100%;
  height: 37%;
  display: flex;
  flex-grow: 0;
  flex-direction: column;

  .lc1-header {
    text-align: center;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 20px;
  }

  .lc1-details {
    height: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-indent: 20px;

    span {
      color: #096dd9;
      font-weight: bold;
      font-size: 35px;
      margin-left: 20px;
    }
  }

  .lc1-chart {
    flex: 1;
  }
}
</style>
